home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Hash_CreateEntry C Library Procedures Hash_CreateEntry
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- Hash_CreateEntry, Hash_FindEntry - keyed search in hash
- table
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<hhaasshh..hh>>
-
- Hash_Entry *
- HHaasshh__CCrreeaatteeEEnnttrryy(_t_a_b_l_e_P_t_r, _k_e_y, _n_e_w_P_t_r)
-
- Hash_Entry *
- HHaasshh__FFiinnddEEnnttrryy(_t_a_b_l_e_P_t_r, _k_e_y)
-
- AARRGGUUMMEENNTTSS
- Hash_Table *_t_a_b_l_e_P_t_r (in) Table in which to search
- for entry or create new
- one.
-
- Address _k_e_y (in) Key value that identifies
- entry. Exact nature
- depends on _k_e_y_T_y_p_e param-
- eter passed to
- Hash_InitTable.
-
- Boolean *_n_e_w_P_t_r (in) If non-NULL, then *_n_e_w_P_t_r
- is filled in with TRUE if
- a new entry was created,
- or FALSE if there was
- already an entry with the
- given key.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- Both HHaasshh__FFiinnddEEnnttrryy and HHaasshh__CCrreeaatteeEEnnttrryy search the hash
- table for an entry with the same key as _k_e_y. If a matching
- entry is found, both return the address of that entry, which
- can then be used in HHaasshh__GGeettVVaalluuee, HHaasshh__SSeettVVaalluuee, and
- HHaasshh__DDeelleetteeEEnnttrryy calls. If no matching entry is found then
- HHaasshh__FFiinnddEEnnttrryy returns NULL; in contrast, HHaasshh__CCrreeaatteeEEnnttrryy
- will create a new entry with the given key and an initial
- value of NULL.
-
-
- KKEEYYWWOORRDDSS
- hash table, key, search
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: April 20, 1992 1
-
-
-
-